package spring;

public class AnotherBean {

    private MyBean myBean;

    public AnotherBean(MyBean myBean) {
        this.myBean = myBean;
        System.out.println("Creating AnotherBean instance using MyBean with instance number: " + myBean.getInstanceNumber());
    }

}
